package com.lsege.service.backstage;

import com.lsege.entity.backstage.SysSet;
import com.lsege.mapper.backstage.SysSetMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/8/8 0008.
 */
@Service
public class SysSetServiceImpl implements SysSetService {
    @Autowired
    SysSetMapper sysSetMapper;

    @Override
    public void setSysAttribute(SysSet sysSet) {
        sysSet.setDepositAmount(sysSet.getDepositAmount()*100);
        sysSet.setClaimAmount(sysSet.getClaimAmount()*100);
        sysSetMapper.setSysAttribute(sysSet);
    }

    @Override
    public List<SysSet> getSysSet() {
        return sysSetMapper.getSysSet();
    }
}
